package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@Document("detail_comment")
public class CantonComment implements Serializable {

    @Id
    private String id;  //mongodb默认的是id
    private Long detailId; //景点id
    private Long userId;    //用户id
    private String username;  //用户名
    private String headUrl;     //头像
    private int thumbupnum;     //点赞数
    private String rank; //总评
    private String scene_rank; //风光
    private String feature_rank; //特色
    private String service_rank; //服务
    private String comment;  //评价
    private List<String> picture = new ArrayList<>(); //评论上传的图片

}
